// BoostTest.cpp : Defines the entry point for the console application.
//

/*#include "stdafx.h"*/
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MAIN
#include <fstream>
#include <iostream>
#include <vector>

#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/serialization/string.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/export.hpp>

#include "ExploreBot.h"
#include "DIVA_VMStub.h"
#include "ubvm_containerStub.h"

BOOST_CLASS_EXPORT(ubvm_containerStub)

BOOST_AUTO_TEST_CASE(Test1)
{
	string _botName;
	DIVA_VMStub* diva_vm;
	int _level;
	int _num;
	std::vector<std::string> _selectRefList;
	ifstream ifs("D:\\ExploreBotParameterWithVM.txt");
	boost::archive::text_iarchive ia(ifs);
	ia >> _botName;
	ia >> diva_vm;
	ia >> _level;
	ia >> _num;
	ia >> _selectRefList;
	ifs.close();

	ExploreBot* ex = new ExploreBot(_botName,diva_vm,_level,_num,_selectRefList);
	bool retValue = ex->doExplor();
	cout << "Return value=" << retValue;

	BOOST_CHECK( retValue == true );
	system("pause");
}

